<template>
  <div id='wrap'>
    <h1>页面头部</h1>
    <p>{{ $route.query.id }}</p>
  </div>
</template>

<script lang='ts'>
export default {
  name: 'scu34Son1',
}
</script>

<script lang='ts' setup>
import { ref } from 'vue'
import { useRoute,useRouter } from "vue-router";
const route=useRoute()
const router=useRouter()
console.log(router);
console.log(route.query);
console.log(route.params);
</script>

<style scoped lang='scss'>

</style>
